// vite.config.js
import { defineConfig } from "file:///D:/%E6%A1%8C%E9%9D%A2/vue/%E6%B8%B8%E6%88%8F%E5%B9%B3%E5%8F%B0%E6%96%B0/game_vue%20-1.0/node_modules/vite/dist/node/index.js";
import vue from "file:///D:/%E6%A1%8C%E9%9D%A2/vue/%E6%B8%B8%E6%88%8F%E5%B9%B3%E5%8F%B0%E6%96%B0/game_vue%20-1.0/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import path from "path";
import Components from "file:///D:/%E6%A1%8C%E9%9D%A2/vue/%E6%B8%B8%E6%88%8F%E5%B9%B3%E5%8F%B0%E6%96%B0/game_vue%20-1.0/node_modules/unplugin-vue-components/dist/vite.js";
import { ElementPlusResolver } from "file:///D:/%E6%A1%8C%E9%9D%A2/vue/%E6%B8%B8%E6%88%8F%E5%B9%B3%E5%8F%B0%E6%96%B0/game_vue%20-1.0/node_modules/unplugin-vue-components/dist/resolvers.js";
import AutoImport from "file:///D:/%E6%A1%8C%E9%9D%A2/vue/%E6%B8%B8%E6%88%8F%E5%B9%B3%E5%8F%B0%E6%96%B0/game_vue%20-1.0/node_modules/unplugin-auto-import/dist/vite.js";
var __vite_injected_original_dirname = "D:\\\u684C\u9762\\vue\\\u6E38\u620F\u5E73\u53F0\u65B0\\game_vue -1.0";
var vite_config_default = defineConfig({
  base: "./",
  plugins: [
    vue(),
    AutoImport({
      resolvers: [ElementPlusResolver()],
      //自动导入element-plus相关函数
      imports: ["vue", "vue-router"]
      //自动导入vue相关函数
    }),
    Components({
      resolvers: [ElementPlusResolver()]
    })
  ],
  resolve: {
    // 配置路径别名
    alias: {
      // 使用 '@' 作为 'src' 目录的别名
      "@": path.resolve(__vite_injected_original_dirname, "src")
    }
  },
  vue: {
    compilerOptions: {
      isCustomElement(tag) {
        return /^swiper/.test(tag);
      }
    }
  },
  css: {
    preprocessorOptions: {
      less: {
        // 在这里配置全局变量或引入全局样式文件
        // 如果你的全局变量文件是src/assets/styles/global.less
        additionalData: `@import "@/styles/global.less";`
      }
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFxcdTY4NENcdTk3NjJcXFxcdnVlXFxcXFx1NkUzOFx1NjIwRlx1NUU3M1x1NTNGMFx1NjVCMFxcXFxnYW1lX3Z1ZSAtMS4wXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCJEOlxcXFxcdTY4NENcdTk3NjJcXFxcdnVlXFxcXFx1NkUzOFx1NjIwRlx1NUU3M1x1NTNGMFx1NjVCMFxcXFxnYW1lX3Z1ZSAtMS4wXFxcXHZpdGUuY29uZmlnLmpzXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ltcG9ydF9tZXRhX3VybCA9IFwiZmlsZTovLy9EOi8lRTYlQTElOEMlRTklOUQlQTIvdnVlLyVFNiVCOCVCOCVFNiU4OCU4RiVFNSVCOSVCMyVFNSU4RiVCMCVFNiU5NiVCMC9nYW1lX3Z1ZSUyMC0xLjAvdml0ZS5jb25maWcuanNcIjtpbXBvcnQgeyBkZWZpbmVDb25maWcgfSBmcm9tICd2aXRlJztcbmltcG9ydCB2dWUgZnJvbSAnQHZpdGVqcy9wbHVnaW4tdnVlJztcbmltcG9ydCBwYXRoIGZyb20gJ3BhdGgnO1xuaW1wb3J0IENvbXBvbmVudHMgZnJvbSAndW5wbHVnaW4tdnVlLWNvbXBvbmVudHMvdml0ZSc7XG5pbXBvcnQgeyBFbGVtZW50UGx1c1Jlc29sdmVyIH0gZnJvbSAndW5wbHVnaW4tdnVlLWNvbXBvbmVudHMvcmVzb2x2ZXJzJztcbmltcG9ydCBBdXRvSW1wb3J0IGZyb20gJ3VucGx1Z2luLWF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